package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Org;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class OrgBO {

    private String ukId;
    private String parentUkId;
    private String name;
    private String status;
    private Integer sort;

    public Org toOrg() {
        Org org = new Org();
        BeanUtils.copyProperties(this, org);
        org.setGmtCreate();
        org.setGmtModified();
        return org;
    }

}